package com.qf.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.blog.entity.Message;
import com.qf.blog.vo.NoticeVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * User: key
 * ClassName:MessageMapper
 * Date: 2023/6/10
 * Time: 13:44
 * description:
 */
@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    public Integer insertOnFollow(Message message);

    public Integer updateOnFollow(Message message);

    public List<NoticeVo> selectAllFromNoticeVo();
    public Message selectByToAndFrom(@Param(value = "toId")Integer toId,@Param(value = "fromId")Integer fromId);
}
